<html>
<script src="jQuery/jquery1.7.1.js"></script>

<script>
$(document).ready(function(){

	var ag3 = "https://jerrydemowc4e460ce.int.sap.hana.ondemand.com/connectivity/api/survey";
	
    $.when( $.ajax({
    	url: ag3,
    	type: "POST",
    	beforeSend: function (xhr) {
    		 xhr.setRequestHeader("answer", "3,2" );
		}
    })).then(function(data, textStatus, jqXHR){
     	alert( jqXHR.status ); // alerts 200
    });
});

</script>
</html>